"""
# -*- coding: utf-8 -*-
# @Time    : 2023/5/21 22:06
# @Author  : 王摇摆
# @FileName: AutoSVM.py
# @Software: PyCharm
# @Blog    ：https://blog.csdn.net/weixin_44943389?type=blog
"""
from sklearn.svm import SVC
from SVM.SVMSoftSpacer.Import import X,y

svc = SVC(kernel = "linear", C = 1)
# 拟合数据
svc.fit(X, y)
# 权重系数
w = svc.coef_
# 截距
b = svc.intercept_
print("w", w, "b", b)
